﻿@*
//***********************************************************************************//
// Autor:  				                						     				*//
//***********************************************************************************//
// Edit()				Acceso ADMINISTRADOR			        	        		*//
// Vista que permite editar los Estados que se encuentran en Base de Datos.         *//
// _________________________________________________________________________________*//
*@

@model SIBI.Models.Estado

@{
    ViewBag.Title = "Editar";
}

<h2>Editar</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Estado</legend>

        @Html.HiddenFor(model => model.EstadoId)

        <div class="editor-label">
           Nombre (*)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cnom)
            @Html.ValidationMessageFor(model => model.cnom)
        </div>

        <p>
            <input type="submit" value="Salvar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Menú Anterior", "Index")
</div>
